package com.hellobike.haxing.modules.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hellobike.haxing.modules.product.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 售卖商品
 * @Author: haxing-boot
 * @Date:   2020-01-17
 * @Version: V1.0
 */
public interface IProductService extends IService<Product> {

    IPage<Product> page(Page<Product> page, QueryWrapper<Product> queryWrapper);

    List<Product> getByIds(List<Long> idList);

    void saveProduct(Product product);

    void updateProduct(Product product);

    Product getProductDetail(Long id);
}
